package com.xbb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xbb.entity.Student;
import com.xbb.entity.dto.StudentDto;

public interface StudentMapper {

	/**
	 * 获取所有学生信息,包含多条件分页查询
	 * @param StudentDto
	 * @return
	 */
	public List<StudentDto> getStus(StudentDto studentDto);
	
	/**
	 * 添加学生信息
	 * @param student
	 * @return
	 */
	public boolean addStu(Student student);
	
	/**
	 * 修改学生信息
	 * @param student
	 * @return
	 */
	public boolean updateStu(Student student);
	
	/**
	 * 删除学生信息
	 * @param stuid
	 * @return
	 */
	public boolean delStu(int stuid);
	
	
	public Student getStuById(int id);
	
	public List<StudentDto> queryByIds(@Param("ids")String[] ids);
}
